﻿using System.Windows;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.UnityExtensions;
using Microsoft.Practices.Unity;
using SilverPop.UI.Modules;

namespace SilverPop.UI
{
	public class Bootstrapper : UnityBootstrapper
	{
		protected override DependencyObject CreateShell()
		{
			Shell shell = Container.Resolve<Shell>();
			Application.Current.RootVisual = shell;
			return shell;
		}

		protected override IModuleCatalog CreateModuleCatalog()
		{
			ModuleCatalog catalog = new ModuleCatalog();
			catalog.AddModule(typeof(DiagramModule));
			return catalog;
		}
	}
}
